﻿using System;
using Castle.ActiveRecord;

namespace Hadlow.Jobvertizer.Models
{
    [ActiveRecord]
    public class CreditCard : Entity
    {
        string number;

        [Property]
        public string Number
        {
            get { return number; }
            set { number = value; }
        }

        CardType cardType;

        [BelongsTo("CardTypeId")]
        public CardType CardType
        {
            get { return cardType; }
            set { cardType = value; }
        }

        string holderName;

        [Property]
        public string HolderName
        {
            get { return holderName; }
            set { holderName = value; }
        }

        string verificationNumber;

        [Property]
        public string VerificationNumber
        {
            get { return verificationNumber; }
            set { verificationNumber = value; }
        }

        DateTime startDate;

        [Property]
        public DateTime StartDate
        {
            get { return startDate; }
            set { startDate = value; }
        }

        DateTime expiryDate;

        [Property]
        public DateTime ExpiryDate
        {
            get { return expiryDate; }
            set { expiryDate = value; }
        }

        int issueNumber;

        [Property]
        public int IssueNumber
        {
            get { return issueNumber; }
            set { issueNumber = value; }
        }
    }
}
